<template>
    <div class="info">
        <div class="nav">

            <div class="box">
                {{ title }}
            </div>

            <div class="bottom"></div>

        </div>
    </div>
</template>

<script>
    export default {
        name: 'Infowindow',
        props: {
            title:{
                type: String,
                default:'1号箱'
            },
            mapshow:{
                type: Boolean,
                default: false,
            },
            isShow:{
                type: Number,
                default: false,
            }
        },
        data(){
            return {


            }
        },
        watch:{
            title(){

            }
        },
        mounted () {

        },
        methods:{


        }
    }
</script>

<style scoped lang="less">

    .info{
        z-index: 999;

        .nav{
            position: relative;
            box-sizing: border-box;

            .box{
                overflow: hidden;
                box-shadow: 0 0 15px #D4D4D4;
                border-radius: 5px;
                background-color: #fff;
                width: 150px;
                line-height: 40px;
                text-align: center;
                letter-spacing: 4px;
            }

            .bottom{
                height: 0;
                width: 100%;
                clear: both;
                text-align: center;
                width: 0;
                height: 0;
                border-left: 20px solid transparent;
                border-right: 20px solid transparent;
                border-top: 30px solid #fff;
                position: absolute;
                bottom: -28px;
                left: 50%;
                /*margin-left: 10px;*/
                z-index: 999;
            }

        }


    }
</style>
